package com.frcdi.qms.masterdata.domain;

import com.frcdi.qms.common.annotation.Excel;
import com.frcdi.qms.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 方法执行步骤记录对象 md_method_execute
 *
 * @author cell
 * @date 2023-12-19
 */
@ApiModel(value = "方法执行步骤记录对象")
public class MethodExecute extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long executeId;

    /** 设备验证表id */
    @Excel(name = "设备验证表id")
    private Long validation;

    /** 方法id */
    @Excel(name = "方法id")
    private Long method;

    /** 项目id */
    @Excel(name = "项目id")
    private Long project;

    /** 步骤id */
    @Excel(name = "步骤id")
    private Long step;

    /** 当前执行次数 */
    private int validationNumber;

    private List<StepData> stepData;

    private Long equipment;

    public void setExecuteId(Long executeId)
    {
        this.executeId = executeId;
    }

    public Long getExecuteId()
    {
        return executeId;
    }
    public void setValidation(Long validation)
    {
        this.validation = validation;
    }

    public Long getValidation()
    {
        return validation;
    }
    public void setMethod(Long method)
    {
        this.method = method;
    }

    public Long getMethod()
    {
        return method;
    }
    public void setProject(Long project)
    {
        this.project = project;
    }

    public Long getProject()
    {
        return project;
    }
    public void setStep(Long step)
    {
        this.step = step;
    }

    public Long getStep()
    {
        return step;
    }

    public List<StepData> getStepData() {
        return stepData;
    }

    public void setStepData(List<StepData> stepData) {
        this.stepData = stepData;
    }

    public int getValidationNumber() {
        return validationNumber;
    }

    public void setValidationNumber(int validationNumber) {
        this.validationNumber = validationNumber;
    }

    public Long getEquipment() {
        return equipment;
    }

    public void setEquipment(Long equipment) {
        this.equipment = equipment;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("executeId", getExecuteId())
            .append("validation", getValidation())
            .append("method", getMethod())
            .append("project", getProject())
            .append("step", getStep())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("validationNumber",getValidationNumber())
            .toString();
    }
}
